{literal}
<style>
	
.requests_box a:link {
	color: #6BB768;
}
.requests_box a:visited {
	color: #6BB768;
}
.requests_box a:hover {
	color: #6BB768;
	text-decoration: underline;
}

.submit{

	background-color: #FAFAFA;
	border-bottom: 2px solid #B6B6B6;
	border-right: 2px solid #B6B6B6;
	border-left: 1px solid #B6B6B6;
	border-top: 1px solid #B6B6B6;
	cursor: pointer;
	height: 35px;
	padding: 0px;
	margin-top: 10px;
	margin-left:  80px;
	font-weight: bold;
}

.search_box2 {
	margin-top: 0px;
	padding-top: 0px;
	padding-left: 0px;
	width: 145px;
	height: 26px;
	color: #B7BBCA;
	border: 1px solid #B7BBCA;
}

.desc {
	font-size: 11pt;
	font-weight: bold;
	color: #5FB769;
	margin: 0px;
}
</style>
{/literal}

<div class="block requests_box">
	<div class="request_box_content">
					  	<p style="color: #2B5E31; padding: 0px; margin: 0px;margin-top: 10px;"><b>Requests</b></p>
					  	<div>
					  		<p class="desc">I`m looking for someone who will</p>
					  		<input type="text" value="" class="search_box2" onfocus="$('#catList').css('display', 'block');"/>
					  		<div id="catList" style="display: none;"><p class="desc">in</p>
					  			<select name="categoriesId" id="categoriesId" style="width: 145px;">
					  			{foreach $categories as $c}
						       		<option value="{$c->getId()}">{$c->getCategory()}</option>
						       	{/foreach}
					  			</select>
					  		</div>
					  		<div class="left">
								<input type="button" value="Suggest" class="submit" id="sub1" onmouseover="$('#sub1').css('color', '#d0d0d0');" onmouseout="$('#sub1').css('color', '#515151');" onclick="{if !$loggedUser}window.location.replace('/login'){else}alert('todo');{/if}"/>
							</div>
							<div class="clear"></div>
					  	</div>
					   	<ul id="buyer_requests" class="admin_menu">
					       	{foreach $buyerRequests as $r}
					       		<li style="font-size: 10pt; padding-bottom: 5px; ">
					       			<a href="/users/{$r->getUser()->getUsername()}">{$r->getUser()->getUsername()}</a><font style="color:#6BB768;"> wants:</font><br />
					       			{$r->getRequest()}
					       		</li>
					       	{/foreach}
					   	</ul>
					</div>
</div>